<div class="page">
    <h1>小技巧</h1>
    <div class="line"></div>


    <h2>vscode 使用技巧</h2>
    <br> <br>
    <h3>自定义用户代码块</h3>
    <br>
    <P style="color:#FF5722">统一全局注释风格</P>
    <br>
    <p>菜单=> 文件=> 首选项=> 用户片段=> Commontblock.code-snippets </p>
    <br>
    <p>prefix 为在页面中自定义开启代码块的表达式位置</p>
    <p>scope 为应用语言名称的字符串（在多少种语言中使用该标记）</p><br>
    <P style="color:#FF5722">注意：请将注释中名称修改为自己的名称</P>
    <br>
    <pre class="line-numbers"><code class="language-js">{
    // Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and 
    // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope 
    // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is 
    // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: 
    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. 
    // Placeholders with the same ids are connected.
    // Example:
    "快捷注释 JS": {
        "scope": "javascript,typescript",
        "prefix": "$cb",
        "body": [
            "////////////////////////////////////////////////",
            "// $0",
            "// 穆松鹤",
            "// ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            "////////////////////////////////////////////////",
        ],
        "description": "快捷注释"
    },
    "快捷注释 CSS": {
        "scope": "css,style",
        "prefix": "$cb",
        "body": [
            "/***********************************************",
            "* $0",
            "* 穆松鹤",
            "* ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            "***********************************************/",
        ],
        "description": "快捷注释"
    },
    "快捷注释 HTML": {
        "scope": "html",
        "prefix": "$cb",
        "body": [
            "&lt;!----------------------------------------",
            "* $0",
            "* 穆松鹤",
            "* ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            "-------------------------------------------&gt;",
        ],
        "description": "快捷注释"
    },
    "时间": {
        "scope": "html,javascript,typescript,css,vue,ejs,json,md",
        "prefix": "$Time",
        "body": [
            "${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}"
        ],
        "description": "快捷输入时间"
    },
}</code></pre>


</div>